import { Navigate, RouteObject } from 'react-router-dom'
import { lazy } from 'react'
const Home = lazy(() => import('@/views/home/Home'))
const Demo1 = lazy(() => import('@/views/child-app/Demo1'))

export const routes: RouteObject[] = [
  {
    path: '/',
    element: <Navigate to='/home'></Navigate>
  },
  {
    path: '/home',
    element: <Home></Home>,
    children: [
      {
        path: 'child',
        element: <Demo1></Demo1>
      }
    ]
  }
] 